<template>
    <div id="root">
    <div class="fa fa-chevron-left" id="back" @click="backClick"></div>
        <div id="login-title">
            <slot></slot>
            </div>
    </div>
</template>

<script>

export default {
    methods: {
        backClick:function(){
            history.back();
        },
    }
}
</script>

<style scoped>
 #login-title{
    text-align: center;
    font-size: 15px;
    height: 45px;
    line-height: 45px;
    background-color: #63B8FF;
    font-family: 宋体;
    font-weight: 700;
}
#back{
    position: absolute;
    height: 4px;
    line-height: 45px;
    left: 15px;
}
#root{
position: fixed;
top:0;
left: 0;
width: 100%;
}
</style>